#include "dialog.h"
#include"QPushButton"
Dialog::Dialog(QWidget*parent):QDialog(parent)
{
  //创建控件，dialog作为父窗口
    QPushButton* btn=new QPushButton("关闭",this);
    connect(btn,&QPushButton::clicked,this,[=]{this->close();});

}
